getSchedule

abstract fun getSchedule(): Schedule

Retrieves the currently active playback schedule for the player.

A Schedule typically defines the sequence of templates, content, or playback instructions that govern what is displayed on the player over a period of time. If no specific schedule is active for the current time (e.g., during initial setup, if all schedules have expired, or if there's a gap in scheduling), this method may return null.

This method can be useful for:

  • Understanding the broader context of what is planned for playback.
  • Inspecting properties of the overall schedule (e.g., name, ID, duration).
  • Debugging scheduling issues by examining the active schedule's configuration.

Note that this method typically returns the overarching schedule. To get the specific template currently rendering within that schedule, use getTemplate.

Return

The currently active Schedule object, or null if no schedule is currently active or defined for the present time.

See also

// Crucial: Assumes a Schedule interface/class exists and is well-documented

For retrieving the specific template currently rendering.

For events related to template changes within a schedule.